<?php

class Image
{
     public $id; 
    
    public $name; 
    
    public $path;
    
    public $bShow;
    
    public $description; 
    
    
    public function __construct($arrInfo) {
        
        if(is_array($arrInfo))
        {
            $this->id = $arrInfo['id']; 
            $this->name = $arrInfo['name']; 
            $this->path = $arrInfo['path'];
            $this->bShow = $arrInfo['bshow'];
            $this->description = $arrInfo['description']; 
        }
         else {
            throw new Exception("Thong tin co van de");
        }
    }
    
    
    
}
?>
